Skip to main content

IRedisList<T>

Wrap the common redis list operations under a IList[string] interface.

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IHasStringId, IHasId<string>

Methods

GetAll()

View Source
Declaration
List<T> GetAll()
Returns

System.Collections.Generic.List<<T>>

GetRange(Int32, Int32)

View Source
Declaration
List<T> GetRange(int startingFrom, int endingAt)
Returns

System.Collections.Generic.List<<T>>

Parameters
TypeName
System.Int32startingFrom
System.Int32endingAt

GetRangeFromSortedList(Int32, Int32)

View Source
Declaration
List<T> GetRangeFromSortedList(int startingFrom, int endingAt)
Returns

System.Collections.Generic.List<<T>>

Parameters
TypeName
System.Int32startingFrom
System.Int32endingAt

RemoveAll()

View Source
Declaration
void RemoveAll()

Trim(Int32, Int32)

View Source
Declaration
void Trim(int keepStartingFrom, int keepEndingAt)
Parameters
TypeName
System.Int32keepStartingFrom
System.Int32keepEndingAt

RemoveValue(T)

View Source
Declaration
long RemoveValue(T value)
Returns

System.Int64

Parameters
TypeName
<T>value

RemoveValue(T, Int32)

View Source
Declaration
long RemoveValue(T value, int noOfMatches)
Returns

System.Int64

Parameters
TypeName
<T>value
System.Int32noOfMatches

AddRange(IEnumerable<T>)

View Source
Declaration
void AddRange(IEnumerable<T> values)
Parameters
TypeName
System.Collections.Generic.IEnumerable<<T>>values

Append(T)

View Source
Declaration
void Append(T value)
Parameters
TypeName
<T>value

Prepend(T)

View Source
Declaration
void Prepend(T value)
Parameters
TypeName
<T>value

RemoveStart()

View Source
Declaration
T RemoveStart()
Returns

<T>

BlockingRemoveStart(Nullable<TimeSpan>)

View Source
Declaration
T BlockingRemoveStart(TimeSpan? timeOut)
Returns

<T>

Parameters
TypeName
System.Nullable<System.TimeSpan>timeOut

RemoveEnd()

View Source
Declaration
T RemoveEnd()
Returns

<T>

Enqueue(T)

View Source
Declaration
void Enqueue(T value)
Parameters
TypeName
<T>value

Dequeue()

View Source
Declaration
T Dequeue()
Returns

<T>

BlockingDequeue(Nullable<TimeSpan>)

View Source
Declaration
T BlockingDequeue(TimeSpan? timeOut)
Returns

<T>

Parameters
TypeName
System.Nullable<System.TimeSpan>timeOut

Push(T)

View Source
Declaration
void Push(T value)
Parameters
TypeName
<T>value

Pop()

View Source
Declaration
T Pop()
Returns

<T>

BlockingPop(Nullable<TimeSpan>)

View Source
Declaration
T BlockingPop(TimeSpan? timeOut)
Returns

<T>

Parameters
TypeName
System.Nullable<System.TimeSpan>timeOut

PopAndPush(IRedisList<T>)

View Source
Declaration
T PopAndPush(IRedisList<T> toList)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>toList